package com.rpay.dao.config;

import org.apache.ibatis.annotations.InsertProvider;

import java.util.List;

/**
 * Created by Administrator on 2018/1/26 0026.
 */
public interface MyInsertListMapper<T> {

    /**
     * 批量插入，支持批量插入的数据库可以使用，例如MySQL,H2等，另外该接口限制实体包含`id`属性并且必须为自增列
     *
     * @param recordList
     * @return
     */
    @InsertProvider(type = MyListProvider.class, method = "dynamicSQL")
    int insertListforComplex(List<T> recordList);
}
